package com.digital.herbarium.Mapper;

import com.digital.herbarium.Entity.Popular;
import com.digital.herbarium.Entity.PopularImg;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface PopularMapper {

    List<Popular> getPopularInfo(Popular popular);

    void delPopular(@Param("ids") Long[] id);


    //    添加信息
    void addPopular(Popular popular );
    //编辑信息
    void editPopular(Popular popular);

    //添加图片
    void addPopularImg(PopularImg popularImg);


    // 下线
    void offPopular(@Param("id") Long id);

    void onPopular(@Param("id") Long id);
//
//    void bachAdd(@Param("list") List<Popular> list);

    Integer getTotal(@Param("queryTime") String queryTime);
}
